package com.wjy.demo.entity;
//entity里的每一个字段，与数据库相对应.

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
//import javax.persistence.Id;
import java.io.Serializable;
//javax.persistence.Id是JPA为所有实现定义的注释.请记住，JPA仅适用于关系数据的管理
//import javax.persistence.Id;

//Data 生成get set方法
@Data
//NoArgsConstructor 生成没有参数的构造方法
@NoArgsConstructor
//AllArgsConstructor 生成全参数的构造方法
@AllArgsConstructor
//Builder 为类生成相对略微复杂的构建器 API
@Builder
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;

   // @Id
    private Long id;
//    private Long createBy;
//    private Long updateBy;
    private Long createTime;
    private Long updateTime;
    private Integer deleted;//0: 新建 1: 删除

    private String openId;
    private String avatarUrl;//头像
    private String nickName;//昵称
//    private String realName;//真实姓名
//    private String account;//账户
    private String telephone;//手机号
    private String gender;//性别
    private Long birthday;
    private String introduction;
    private String address;
}
